function counter() {
    var d = document.createElement('div');
    d.innerHTML = '1';
    d.onclick = function () {
        d.innerHTML = parseInt(d.innerHTML) + 1;
    };
    document.body.appendChild(d);
}

export default counter;